package com.aspose.cells;

class zawt extends zawu {
   private zagk c;
   private zagu d;
   private zagu e;

   public zawt(zahn var1, zagk var2, zaay var3) {
      super(var1, var3);
      this.c = var2;
   }

   private zawt(zahn var1, zagk var2, zaay var3, zagu var4) {
      super(var1, var3);
      this.c = var2;
      this.d = var4;
   }

   public zahn b(zaay var1) {
      return new zawt(this.a.b(var1), (zagk)this.c.a(var1), var1, this.d);
   }

   public int b() {
      return this.c.b();
   }

   public zagu a(int var1, int var2) {
      zagu var3 = this.a.a(var1, var2);
      if (this.a.a(var3)) {
         if (this.d == null) {
            this.d = this.c.a(var3, false);
            this.d.a(false);
         }

         return this.d;
      } else {
         return this.c.a(var3);
      }
   }

   public void f() {
      this.a.f();
   }

   public boolean b(int var1, int var2) {
      this.e = null;
      return this.a.b(var1, var2);
   }

   public boolean a(int var1) {
      this.e = null;
      return this.a.a(var1);
   }

   public boolean g() {
      this.e = null;
      return this.a.g();
   }

   public zagu h() {
      if (this.e != null) {
         return this.e;
      } else {
         this.e = this.c.a(this.a.h());
         return this.e;
      }
   }

   public zahn b(int var1) {
      if (this.a.m()) {
         return this;
      } else {
         return (zahn)(this.a.n() ? new zaya(this.a(var1, 0)) : new zawt(this.a.b(var1), this.c, this.b, this.d));
      }
   }

   public zahn c(int var1) {
      if (this.a.n()) {
         return this;
      } else {
         return (zahn)(this.a.m() ? new zaya(this.a(0, var1)) : new zawt(this.a.c(var1), this.c, this.b, this.d));
      }
   }

   public zahn c(zaay var1) {
      Object var2;
      if (this.a.c() == 1) {
         var2 = new zbvk(this, this.d, this.a.t(), this.a.u(), this.a.d(), false);
      } else if (this.a.d() == 1) {
         var2 = new zbvk(this, this.d, this.a.r(), this.a.s(), this.a.c(), true);
      } else {
         var2 = new zbvm(this, this.d, this.a.r(), this.a.t(), this.a.s(), this.a.u(), this.a.c(), this.a.d());
      }

      return new zawy(this.b(var1), (zaik)var2, var1);
   }

   public zagu o() {
      if (this.d == null) {
         this.d = this.c.a(this.a.o(), false);
         this.d.a(false);
      }

      return this.d;
   }

   public zagu p() {
      if (this.d != null) {
         return this.d;
      } else {
         zagu var1 = this.a.p();
         if (var1 == null) {
            return null;
         } else {
            this.d = this.c.a(var1, true);
            if (this.d != null) {
               this.d.a(false);
            }

            return this.d;
         }
      }
   }

   public boolean a(zagu var1) {
      return var1 == this.d;
   }

   public boolean z() {
      return !this.c.a() ? false : this.a.z();
   }

   public void b(boolean var1) {
      this.c.a(var1);
      this.a.b(var1);
   }

   public void a(zaay var1) {
      super.a(var1);
      this.c.b(this.b);
   }

   public boolean A() {
      return true;
   }
}
